package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.api.model.vo.ProductStockDetailsVo;
import com.weixing.mall.provider.model.domain.ProductStockDetails;
import com.weixing.mall.provider.model.query.ProductStockQuery;
import com.weixing.mall.provider.model.vo.ProductStockListVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Small
 * @since 2021-07-30
 */
public interface IProductStockDetailsService extends IService<ProductStockDetails> {

    Map<String,Object> totalQuantityAndAmount(ProductStockQuery productStockQuery);

    IPage<ProductStockListVo> selectOfPage(Page initMpPage, ProductStockQuery productStockQuery);

    List<ProductStockDetailsVo> getAllAvaByDepotId(Long depotId);

    ProductStockDetailsVo   matching(Long  goodsId,String color,String size);

    List<ProductStockListVo>  selectList(ProductStockQuery productStockQuery);

    void delByDepotSn(String depotSn);

    Map<String, Object> test(String trim, String trim1, String trim2);

}
